<div class="bh-content">
	<div class="bh-ly-jj-lvviews_con bh-padT10">
		<div class="bh-fl">
    	<?php $this->renderPartial('app.views.partials.platform.travel.category_search')?>
		<?php $this->widget('lib.ext.data.DataWidget',array(
				'model' => CHtml::value($model, 'provider'),
				'view' => 'application.views.partials.public.provider'
			))?>
		</div>
        <div class="bh-ly-jj-lyview_conR bh-Border_1 bh-fr">
        	<h3 class="bh-ly-jj-con_rgbt bh-mBt10 bh-ly-jj-borderB"><?php echo $model->fullTitle?></h3>
            <div class="bh-ly-jj-lvxianlu1 bh-ly-jj-borderB">
            	<div class="bh-fl goods-detail-image"><a href="javascript:void(0)"><?php echo $model->img(312,277)?></a></div>
                <div class="bh-ly-jj-xianlu-buy bh-fl bh-mlt30">
                	<table class="bh-ly-jj-xianlu_buytab tb-goods-detail">
                    	<tr>
                        	<th width=70>线路编号</th>
                            <td class="bh-textLt"><?php echo $model->id?></td>
                        </tr>
                        <tr class='goods-price-row'>
                        	<th>销售价</th>
                            <td class="bh-textLt bh-ly-jj-fontB bh-strong bh-bodyred">￥<?php echo CHtml::value($model, 'priceInfo.price_dealer')?>元</td>
                        </tr>
                        <tr>
                        	<th>出发城市</th>
                            <td class="bh-textLt"><?php echo Yii::app()->enum->lookup('district', CHtml::value($model, 'profile.departure_province')).' '.Yii::app()->enum->lookup('district', CHtml::value($model, 'profile.departure_city'))?></td>
                        </tr>
                        <tr>
                        	<th>出行天数</th>
                            <td class="bh-textLt"><?php echo CHtml::value($model, 'profile.day_number')?>天</td>
                        </tr>
                        <tr>
                        	<th>出行人数</th>
                            <td class="bh-textLt"><?php echo CHtml::value($model, 'profile.total_num')?>人</td>
                        </tr>
                        <tr>
                        	<th>发团日期</th>
                            <td class="bh-textLt"><?php echo CHtml::value($model, 'buildRule.ruleTitle')?></td>
                        </tr>
                        <tr>
                        	<th>截止日期</th>
                            <td class="bh-textLt"><?php echo date('Y-m-d',strtotime(CHtml::value($model, 'profile.end_time')))?></td>
                        </tr>
                        <tr>
                        	<th>供应商</th>
                            <td class="bh-textLt"><?php echo CHtml::link(CHtml::value($model, 'provider.profile.nickname'),Yii::app()->createUrl('shop/index',array('uid'=>CHtml::value($model, 'provider_id'))),array('target'=>'_blank'))?></td>
                        </tr>
                        <tr>
                        	<th></th>
                        	<td>
                        		<div class='tb-btn-buy'>
			                    	<a href='<?php echo $this->createUrl('channel/travelWrite',array('id'=>$model->id))?>' class=''>立即购买<b>&nbsp;</b></a>
			                    </div>
                        	</td>
                        </tr>
                    </table>
                </div>
                <div class="bh-space"></div>
                <div class="bh-space"></div>
            </div>
            <div class="bh-mTop20">
              <div class="bh-ly-jj-luxiancon1">
              	<div  class='tb-goods-detail-ext-wrapper'>
                    <table width="100%" class='tb-goods-detail-ext' border="0" cellspacing="0" cellpadding="0">
                      <tr>
                      	<th width='80'>集合地址：</th>
                        <td colspan='2' ><?php echo CHtml::value($model, 'profile.departure_address')?></td>
                      </tr>
                      <tr>
                        <th>成团人数：</th>
                        <td width="200"><?php echo CHtml::value($model, 'profile.num')?></td>
                        <th width=100>出行天数：</th>
                        <td><?php echo CHtml::value($model, 'profile.day_number')?>天</td>
                      </tr>
                      <tr>
                        <th>联系电话：</th>
                        <td><?php echo CHtml::value($model, 'profile.emergency_tel')?></td>
                        <th>截止日期：</th>
                        <td><?php echo date('Y-m-d',strtotime(CHtml::value($model, 'profile.end_time')))?></td>
                      </tr>
                    </table>
                 </div>
                    <div class='goods-desc-item'>
                    	<h1 class='goods-desc-title'><span>服务标准</span></h1>
                    	<div class='goods-desc-content'>
                    		<?php echo CHtml::value($model, 'profile.service')?>
                    	</div>
                    </div>

                    <div class='goods-desc-item'>
                    	<h1 class='goods-desc-title'><span>行程描述</span></h1>
                    	<div class='goods-desc-content'>
                    		<?php echo CHtml::value($model, 'profile.desc')?>
                    	</div>
                    </div>

                    <div class='goods-desc-item'>
                    	<h1 class='goods-desc-title'><span>发团描述</span></h1>
                    	<div class='goods-desc-content'>
                    		<?php echo CHtml::value($model, 'profile.send_group')?>
                    	</div>
                    </div>
                    <div class='goods-desc-item' id='comment'>
						<!-- 评论 -->
		            </div>
              </div>
              <div class="bh-space"></div>
              <div class="bh-space"></div>
            </div>

        </div>
    </div>
    <div class="bh-space"></div>
</div>
<script>
$().ready(function() {
	$.get('<?php echo Yii::app()->createUrl('provide/goodsComment/list');?>', {'title':'旅游','type':'Travel', 'id':'<?php echo $model->id?>'},function(content) {
		$('#comment').html(content);
	});
});
</script>